package com.whirl.mapper;

import com.whirl.entity.Weather;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author xw
 * @date 2022/8/12 13:07
 */

@Mapper
public interface WeatherMapper {
    @Select("select * from weather.temper_humidity")
    List<Weather> getWeather();

    void batchInsertWeather(@Param("weather") List<Weather> weather);

}
